<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h3>영화관</h3>
<hr align="left" width="150">
<center>
<table class="cinemaInfolist">
	<thead>
	<tr>
		<th class="no">NO</th>
		<th class="title">영화관</th>
	</tr>
	</thead>
	<tbody>	
	<c:forEach var="cinemaVo" items="${requestScope.clistVO.cinemaList}">	
		<tr>
		    <td>${cinemaVo.cinemaNo }</td>
			<td>
				<a href="${initParam.root }admin/cinema_content.do?cinemaNo=${cinemaVo.cinemaNo }">${cinemaVo.name }</a>
			</td>
		</tr>
	</c:forEach>	
	</tbody>
	<tfoot>
	<tr>
		<td align="right" colspan="2"><a href="${initParam.root}admin/cinema_write_view.do"><img  src="${initParam.root}img/write_btn.jpg" border="0"></a></td>
	</tr>
	<tr align="center">
		<td colspan="2">
		<c:if test="${requestScope.clistVO.pagingBean.previousPageGroup}">
			 <a href="${initParam.root }admin/directorList.do?pageNo=${requestScope.clistVO.pagingBean.startPageOfPageGroup-1}">◀&nbsp;</a>
		 </c:if>
		 &nbsp;&nbsp;
		<c:forEach var="i" begin="${requestScope.clistVO.pagingBean.startPageOfPageGroup}" end="${requestScope.clistVO.pagingBean.endPageOfPageGroup}">
		 	<c:choose>
		 		<c:when test="${requestScope.clistVO.pagingBean.nowPage!=i}">
		 			<a href="${initParam.root }admin/cinemaList.do?pageNo=${i}">${i}</a>
		 		</c:when>
			 	<c:otherwise>
					${i}
				</c:otherwise>
			</c:choose>
		</c:forEach>	 
		&nbsp;&nbsp;
		<c:if test="${requestScope.clistVO.pagingBean.nextPageGroup}">
			<a href="${initParam.root }admin/cinemaList.do?pageNo=${requestScope.clistVO.pagingBean.endPageOfPageGroup+1}"> ▶ </a>
		</c:if>	
		</td>
	</tr>
	</tfoot>
</table>	
</center>